﻿using System;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Activation;

namespace ProjManagSolution.Web
{
    [ServiceContract(Namespace = "")]
    [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
    public class anotherWebService
    {
        [OperationContract]
        public void DoWork()
        {
            // Add your operation implementation here
            return;
        }

        // Add more operations here and mark them with [OperationContract]
        [OperationContract]
        public void InsertFolder(int projectID)
        {
            Models db = new Models();
            db.insertFolder(projectID);
        }

        [OperationContract]
        public void InsertDocumentation(int uploaderID, int projectID, string documentationName, string url, DateTime date, string status)
        {
            Models db = new Models();
            db.insertDocumentation(uploaderID, projectID, documentationName, url, date, status);
        }
    }
}
